<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Doxygen: apps/point_cloud_editor/include/pcl/apps/point_cloud_editor/copyBuffer.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Doxygen
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('copy_buffer_8h_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">copyBuffer.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="copy_buffer_8h.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160; </div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160; </div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="preprocessor">#ifndef COPY_BUFFER_H_</span></div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="preprocessor">#define COPY_BUFFER_H_</span></div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160; </div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="local_types_8h.html">pcl/apps/point_cloud_editor/localTypes.h</a>&gt;</span></div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="cloud_8h.html">pcl/apps/point_cloud_editor/cloud.h</a>&gt;</span></div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160; </div>
<div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="class_copy_buffer.html">   49</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_copy_buffer.html">CopyBuffer</a> : <span class="keyword">public</span> <a class="code" href="class_statistics.html">Statistics</a></div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;{</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;  <span class="keyword">public</span>:</div>
<div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="class_copy_buffer.html#a80fff9ef272755c91db01b2a5b803033">   54</a></span>&#160;    <a class="code" href="class_copy_buffer.html#a80fff9ef272755c91db01b2a5b803033">CopyBuffer</a> (<span class="keywordtype">bool</span> register_stats=<span class="keyword">false</span>)</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    {</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;      <span class="keywordflow">if</span> (register_stats)</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;        <a class="code" href="class_statistics.html#a600df203053cd270b328d95df6a46aa6">registerStats</a>();</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    }</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;    </div>
<div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="class_copy_buffer.html#aed16ed6c8a16a8f735b6b948abe85f3f">   64</a></span>&#160;    <a class="code" href="class_copy_buffer.html#aed16ed6c8a16a8f735b6b948abe85f3f">CopyBuffer</a> (<span class="keyword">const</span> <a class="code" href="class_copy_buffer.html">CopyBuffer</a>&amp; copy);</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160; </div>
<div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="class_copy_buffer.html#a6fd70593903235634a5435f644ae814a">   67</a></span>&#160;    <a class="code" href="class_copy_buffer.html#a6fd70593903235634a5435f644ae814a">~CopyBuffer</a> ()</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;    {</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;    }</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;    </div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    <a class="code" href="class_copy_buffer.html">CopyBuffer</a>&amp;</div>
<div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="class_copy_buffer.html#a716da60881a1f4926f64b2ab1dc59068">   76</a></span>&#160;    <a class="code" href="class_copy_buffer.html#a716da60881a1f4926f64b2ab1dc59068">operator= </a>(<span class="keyword">const</span> <a class="code" href="class_copy_buffer.html">CopyBuffer</a>&amp; copy_buffer);</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160; </div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;    <span class="keywordtype">void</span></div>
<div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="class_copy_buffer.html#a32f1615cf97d9059da9744ca7368ecb6">   88</a></span>&#160;    <a class="code" href="class_copy_buffer.html#a32f1615cf97d9059da9744ca7368ecb6">set</a> (<a class="code" href="local_types_8h.html#aad5f0c82cf4c260ee8aac89a5cb65808">ConstCloudPtr</a> cloud_ptr, <span class="keyword">const</span> <a class="code" href="class_selection.html">Selection</a>&amp; selection);</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160; </div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;    <span class="keyword">const</span> <a class="code" href="class_cloud.html">Cloud</a>&amp;</div>
<div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="class_copy_buffer.html#aa8f059f0d5fd59e23a2d8864dcd2a47b">   92</a></span>&#160;    <a class="code" href="class_copy_buffer.html#aa8f059f0d5fd59e23a2d8864dcd2a47b">get</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160; </div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;    <a class="code" href="class_cloud.html">Cloud</a>&amp;</div>
<div class="line"><a name="l00096"></a><span class="lineno"><a class="line" href="class_copy_buffer.html#aab7d4e7037ae0587bb414101ba7d43a4">   96</a></span>&#160;    <a class="code" href="class_copy_buffer.html#aab7d4e7037ae0587bb414101ba7d43a4">get</a>();</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;    </div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;    <span class="keywordtype">void</span></div>
<div class="line"><a name="l00100"></a><span class="lineno"><a class="line" href="class_copy_buffer.html#a6349bb6a0da3621cf3a86648bfe69955">  100</a></span>&#160;    <a class="code" href="class_copy_buffer.html#a6349bb6a0da3621cf3a86648bfe69955">clean</a> ();</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;        </div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;    std::string</div>
<div class="line"><a name="l00104"></a><span class="lineno"><a class="line" href="class_copy_buffer.html#a673b398c91ad4b477c957a02920f897f">  104</a></span>&#160;    <a class="code" href="class_copy_buffer.html#a673b398c91ad4b477c957a02920f897f">getStat</a> () <span class="keyword">const</span>;</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160; </div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;    <span class="keywordtype">bool</span></div>
<div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="class_copy_buffer.html#a6234119988332b0fa9a7e3ff1242f6f4">  108</a></span>&#160;    <a class="code" href="class_copy_buffer.html#a6234119988332b0fa9a7e3ff1242f6f4">empty</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;<span class="keyword">    </span>{</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;      <span class="keywordflow">return</span> (<a class="code" href="class_copy_buffer.html#a6dfc9cf2961d58f350bc72747f78c659">buffer_</a>.<a class="code" href="class_cloud.html#a1be0c0345faefbbab6e9a885ae055ce7">size</a>() == 0);</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;    }</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160; </div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;  <span class="keyword">private</span>:</div>
<div class="line"><a name="l00115"></a><span class="lineno"><a class="line" href="class_copy_buffer.html#a6dfc9cf2961d58f350bc72747f78c659">  115</a></span>&#160;    <a class="code" href="class_cloud.html">Cloud</a> <a class="code" href="class_copy_buffer.html#a6dfc9cf2961d58f350bc72747f78c659">buffer_</a>; </div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;};</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;<span class="preprocessor">#endif </span><span class="comment">// COPY_BUFFER_H_</span></div>
<div class="ttc" id="aclass_cloud_html"><div class="ttname"><a href="class_cloud.html">Cloud</a></div><div class="ttdoc">A wrapper which allows to use any implementation of cloud provided by a third-party library.</div><div class="ttdef"><b>Definition:</b> cloud.h:73</div></div>
<div class="ttc" id="aclass_cloud_html_a1be0c0345faefbbab6e9a885ae055ce7"><div class="ttname"><a href="class_cloud.html#a1be0c0345faefbbab6e9a885ae055ce7">Cloud::size</a></div><div class="ttdeci">unsigned int size() const</div><div class="ttdoc">Gets the size of the cloud</div><div class="ttdef"><b>Definition:</b> cloud.h:299</div></div>
<div class="ttc" id="aclass_copy_buffer_html"><div class="ttname"><a href="class_copy_buffer.html">CopyBuffer</a></div><div class="ttdoc">a buffer holding the points being copied and a set of operations for manipulating the buffer.</div><div class="ttdef"><b>Definition:</b> copyBuffer.h:50</div></div>
<div class="ttc" id="aclass_copy_buffer_html_a32f1615cf97d9059da9744ca7368ecb6"><div class="ttname"><a href="class_copy_buffer.html#a32f1615cf97d9059da9744ca7368ecb6">CopyBuffer::set</a></div><div class="ttdeci">void set(ConstCloudPtr cloud_ptr, const Selection &amp;selection)</div><div class="ttdoc">Sets the points in the copy buffer.</div></div>
<div class="ttc" id="aclass_copy_buffer_html_a6234119988332b0fa9a7e3ff1242f6f4"><div class="ttname"><a href="class_copy_buffer.html#a6234119988332b0fa9a7e3ff1242f6f4">CopyBuffer::empty</a></div><div class="ttdeci">bool empty() const</div><div class="ttdoc">Returns true if the buffer is empty, false otherwise</div><div class="ttdef"><b>Definition:</b> copyBuffer.h:108</div></div>
<div class="ttc" id="aclass_copy_buffer_html_a6349bb6a0da3621cf3a86648bfe69955"><div class="ttname"><a href="class_copy_buffer.html#a6349bb6a0da3621cf3a86648bfe69955">CopyBuffer::clean</a></div><div class="ttdeci">void clean()</div><div class="ttdoc">Removes all the points from the copy buffer.</div></div>
<div class="ttc" id="aclass_copy_buffer_html_a673b398c91ad4b477c957a02920f897f"><div class="ttname"><a href="class_copy_buffer.html#a673b398c91ad4b477c957a02920f897f">CopyBuffer::getStat</a></div><div class="ttdeci">std::string getStat() const</div><div class="ttdoc">Get the statistics of the copied points in string.</div></div>
<div class="ttc" id="aclass_copy_buffer_html_a6dfc9cf2961d58f350bc72747f78c659"><div class="ttname"><a href="class_copy_buffer.html#a6dfc9cf2961d58f350bc72747f78c659">CopyBuffer::buffer_</a></div><div class="ttdeci">Cloud buffer_</div><div class="ttdoc">a cloud object holding all the copied points.</div><div class="ttdef"><b>Definition:</b> copyBuffer.h:115</div></div>
<div class="ttc" id="aclass_copy_buffer_html_a6fd70593903235634a5435f644ae814a"><div class="ttname"><a href="class_copy_buffer.html#a6fd70593903235634a5435f644ae814a">CopyBuffer::~CopyBuffer</a></div><div class="ttdeci">~CopyBuffer()</div><div class="ttdoc">Destructor</div><div class="ttdef"><b>Definition:</b> copyBuffer.h:67</div></div>
<div class="ttc" id="aclass_copy_buffer_html_a716da60881a1f4926f64b2ab1dc59068"><div class="ttname"><a href="class_copy_buffer.html#a716da60881a1f4926f64b2ab1dc59068">CopyBuffer::operator=</a></div><div class="ttdeci">CopyBuffer &amp; operator=(const CopyBuffer &amp;copy_buffer)</div><div class="ttdoc">Equal Operator</div></div>
<div class="ttc" id="aclass_copy_buffer_html_a80fff9ef272755c91db01b2a5b803033"><div class="ttname"><a href="class_copy_buffer.html#a80fff9ef272755c91db01b2a5b803033">CopyBuffer::CopyBuffer</a></div><div class="ttdeci">CopyBuffer(bool register_stats=false)</div><div class="ttdoc">Default Constructor</div><div class="ttdef"><b>Definition:</b> copyBuffer.h:54</div></div>
<div class="ttc" id="aclass_copy_buffer_html_aa8f059f0d5fd59e23a2d8864dcd2a47b"><div class="ttname"><a href="class_copy_buffer.html#aa8f059f0d5fd59e23a2d8864dcd2a47b">CopyBuffer::get</a></div><div class="ttdeci">const Cloud &amp; get() const</div><div class="ttdoc">Returns the points stored in the internal buffer as a const Cloud</div></div>
<div class="ttc" id="aclass_copy_buffer_html_aab7d4e7037ae0587bb414101ba7d43a4"><div class="ttname"><a href="class_copy_buffer.html#aab7d4e7037ae0587bb414101ba7d43a4">CopyBuffer::get</a></div><div class="ttdeci">Cloud &amp; get()</div><div class="ttdoc">Returns the points stored in the internal buffer as a Cloud</div></div>
<div class="ttc" id="aclass_copy_buffer_html_aed16ed6c8a16a8f735b6b948abe85f3f"><div class="ttname"><a href="class_copy_buffer.html#aed16ed6c8a16a8f735b6b948abe85f3f">CopyBuffer::CopyBuffer</a></div><div class="ttdeci">CopyBuffer(const CopyBuffer &amp;copy)</div><div class="ttdoc">Copy Constructor</div></div>
<div class="ttc" id="aclass_selection_html"><div class="ttname"><a href="class_selection.html">Selection</a></div><div class="ttdoc">This class serves as a sort of mask for performing operations on a point cloud. It keeps track of the...</div><div class="ttdef"><b>Definition:</b> selection.h:53</div></div>
<div class="ttc" id="aclass_statistics_html"><div class="ttname"><a href="class_statistics.html">Statistics</a></div><div class="ttdef"><b>Definition:</b> statistics.h:49</div></div>
<div class="ttc" id="aclass_statistics_html_a600df203053cd270b328d95df6a46aa6"><div class="ttname"><a href="class_statistics.html#a600df203053cd270b328d95df6a46aa6">Statistics::registerStats</a></div><div class="ttdeci">void registerStats()</div><div class="ttdoc">Register a statistics</div></div>
<div class="ttc" id="acloud_8h_html"><div class="ttname"><a href="cloud_8h.html">cloud.h</a></div></div>
<div class="ttc" id="alocal_types_8h_html"><div class="ttname"><a href="local_types_8h.html">localTypes.h</a></div></div>
<div class="ttc" id="alocal_types_8h_html_aad5f0c82cf4c260ee8aac89a5cb65808"><div class="ttname"><a href="local_types_8h.html#aad5f0c82cf4c260ee8aac89a5cb65808">ConstCloudPtr</a></div><div class="ttdeci">boost::shared_ptr&lt; const Cloud &gt; ConstCloudPtr</div><div class="ttdef"><b>Definition:</b> localTypes.h:76</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_9654b8d08f4bba4e84b362c5fd320bee.html">apps</a></li><li class="navelem"><a class="el" href="dir_b812044310263d1df0acdcc34fa78063.html">point_cloud_editor</a></li><li class="navelem"><a class="el" href="dir_e7676f72fdf944a58a9890202aea4fdd.html">include</a></li><li class="navelem"><a class="el" href="dir_f36a0c0a6789487b19709622e8aaedff.html">pcl</a></li><li class="navelem"><a class="el" href="dir_dfd6ef21606ddfa5cd0b7ee0903ae9ec.html">apps</a></li><li class="navelem"><a class="el" href="dir_4eea226eade4b66d41c153c54681c108.html">point_cloud_editor</a></li><li class="navelem"><a class="el" href="copy_buffer_8h.html">copyBuffer.h</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
